#include "Task.hpp"
#include "ThreadPool.hpp"

int main()
{
    ThreadPool<Task> *tp = new ThreadPool<Task>();
    tp->Init();
    tp->Start();
    int cnt = 5;
    while (cnt--)
    {
        Task t(1, 1);
        tp->Equeue(t);
        std::cout << t.debug() << std::endl;
        sleep(1);
    }
    
    tp->Stop();
    sleep(10);
    return 0;
}